//
//  GC_XMLParser.h
//  XMLtoCD04
//
//  Created by Miles on 10-03-23.
//  Copyright 2010 Miles Thorogood
//  greenmeat.net. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface GC_XMLParser : NSObject {
	//NSString *fileURL ;
	NSString *parentElement ;// dig in from this element
	
	NSArray *workElements ; // array of elements passed in
	
	NSMutableArray *elements ; // a working array 
	
	NSMutableArray *arrangedElementList ; // an array to arrange elements as they may not come in order.
	
	NSXMLParser *parser ;
	
	NSString *currentElement ; // name of found element
	
	NSMutableString *current ; // string value of the element
	
	NSMutableDictionary *item ; // a temporary store of the current item
	
	NSMutableArray *artists ; // our array of artists to return
}

- (id) initWithObjects:(NSString *)URL parent:(NSString *)inParent elements:(NSArray *)inElements ;
- (void) parseXMLFileAtURL:(NSString *)URL ;
- (NSString *) stripNewlineWhitespace:(NSString *) string ;

@property (nonatomic, retain) NSString *parentElement ;
@property (nonatomic, retain) NSArray *workElements ;
@property (nonatomic, retain) NSMutableArray *elements ;
@property (nonatomic, retain) NSMutableArray *arrangedElementList ;
@property (nonatomic, retain) NSXMLParser *parser ;
@property (nonatomic, retain) NSString *currentElement ;
@property (nonatomic, retain) NSMutableString *current ;
@property (nonatomic, retain) NSMutableDictionary *item ;
@property (nonatomic, retain) NSMutableArray *artists ;

@end
